// SPDX-FileCopyrightText: Copyright 2025-2025 深圳市同心圆网络有限公司
// SPDX-License-Identifier: Apache-2.0

package user_dao

import "go.mongodb.org/mongo-driver/v2/mongo"

var UserInfoDao *_UserInfoDao
var UserPasswdDao *_UserPasswdDao
var UserMsgInfoDao *_UserMsgInfoDao

func InitDao(mgoDb *mongo.Database) (err error) {
	UserInfoDao, err = newUserInfoDao(mgoDb)
	if err != nil {
		return
	}
	UserPasswdDao, err = newUserPasswdDao(mgoDb)
	if err != nil {
		return
	}
	UserMsgInfoDao, err = newUserMsgInfoDao(mgoDb)
	if err != nil {
		return
	}
	return
}
